#!/usr/bin/env python
# -*- coding:utf-8 -*-
from teach import models
from stark.service.stark import site
from teach.views.classes import ClassHandler
from teach.views.teaching_daily import TeachingDailyHandler
from teach.views.subject import SubjectHandler
from teach.views.tag import TagHandler
from teach.views.question_library import QuestionLibraryHandler
from teach.views.question_library import PrivateQuestionLibraryHandler

site.register(models.Subject, SubjectHandler)
site.register(models.Class, ClassHandler)
site.register(models.TeachingDaily, TeachingDailyHandler)
site.register(models.Tag, TagHandler)
site.register(models.QuestionLibrary, QuestionLibraryHandler)
site.register(models.QuestionLibrary, PrivateQuestionLibraryHandler, 'private')
